﻿#ifndef MYCOMBOBOX_H
#define MYCOMBOBOX_H

#include<QComboBox>
#include<QMouseEvent>

class MyComboBox :public QComboBox
{
    Q_OBJECT
public:
     MyComboBox(QWidget *parent = 0);

    ~MyComboBox();

protected:
    virtual void mousePressEvent(QMouseEvent *e);  //添加鼠标点击事件

signals:
    void clicked();  //自定义点击信号，在mousePressEvent事件发生时触发
};

#endif // MYCOMBOBOX_H
